package cn.seczone.iast.agent;

/**
 * @author XieShaoping
 */
public class InjectMethod {

    public static void beforeCode(Object obj1, Object obj2, Object obj3) throws Exception {
        if (obj2.equals("123")){
            throw new Exception();
        }
        System.out.println("我进入方法了");
        System.out.println(obj1);
        System.out.println(obj2);
        System.out.println(obj3);
    }

    public static void afterCode(Object[] obj1) throws Exception {
        System.out.println("我进入方法了");
        System.out.println(obj1);
    }

    public static void afterCode(Object obj1, Object obj2, Object obj3) {
        System.out.println("我退出方法了");
        System.out.println(obj1);
        System.out.println(obj2);
        System.out.println(obj3);
    }

}
